/*
 * @Author: WuShuang
 * @Date: 2024-04-17
 *
 *车型管理
 */

import { createAPI } from '@/utils/request'

// 获取车型管理列表数据
export const carModelsListAPI = data => createAPI(`/truckType/page`, 'get', data)
// 新增车型
export const newCarModelAPI = data => createAPI(`/truckType`, 'post', data)
// 编辑车型
export const changeCarModelAPI = data => createAPI(`/truckType/${data.id}`, 'put', data)
// 删除车型
export const delcarModelAPI = data => createAPI(`truckType/${data}`, 'delete')
// 获取车型列表
export const getCarModelsTypeListAPI = data => createAPI(`/truckType/simple`, 'get', data)
